package com.hero.take;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;

@Slf4j
@MapperScan(basePackages = "com.hero.take.mapper")
@SpringBootApplication //(exclude= DataSourceAutoConfiguration.class) 手动
@ServletComponentScan  //让Servlet规范的注解生效
public class TakeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TakeApplication.class, args);
        log.info("项目启动成功了宝贝！");
    }
}
